
import axios from "@/utils/axios";
//加密算法
import { shaCrypto } from '../utils/crypto';
export const login = ({ username, password }) => {
    return axios.post("/user/login", {
        account: username,
        password: shaCrypto(password + 'icep1029!@'),
    });
}
export const userInfo = () => {
    return axios.get("/current/user");
};

export const getOauth = (parmas) => {
    return axios.get("/user/oauth" , parmas);
};